//
//  MetalAdder.h
//  Metal-Master
//
//  Created by 杨冰冰 on 2020/6/15.
//  Copyright © 2020 杨冰冰. All rights reserved.
//

#import <Foundation/Foundation.h>
@import Metal;
NS_ASSUME_NONNULL_BEGIN

@interface MetalAdder : NSObject
{
    id <MTLDevice> _mDevice;
    id <MTLComputePipelineState> _mAddFunctionPSO;
    id <MTLCommandQueue> _commandQueue;
    id <MTLBuffer> _mBufferA;
    id <MTLBuffer> _mBufferB;
    id <MTLBuffer> _mBufferResult;

    
}
- (instancetype)initWithDevice:(id <MTLDevice>)device;

- (void)verifyResultes;
@end

NS_ASSUME_NONNULL_END
